import request from '@/utils/request.js';
// 确认订单
export const reqCarToOrder = (data) => request({ url: '/order/settlement', method: 'GET', params: data });
// 创建订单
export const reqCreateOrder = (data) => request({ url: '/order/create', method: 'POST', data });
// 获取openId
export const reqOpenId = (data) => request({ url: '/order/getOpenId', method: 'GET', params: data });
// 获取订单列表
export const reqOrderList = (data) => request({ url: '/order/getOrder', method: 'GET', params: data });
// 主动取消订单
export const reqCancelOrder = (data) => request({ url: '/order/cancel', method: 'POST', data });
// 再次支付
export const reqPayAgain = (data) => request({ url: '/order/payAgain', method: 'GET', params: data });
// 获取电商订单详情
export const reqOrderDetail = (data) => request({ url: '/order/getOrderDetails', method: 'GET', params: data });
// 确认收货校验
export const reqEnterOrderStatus = data => request({ url: '/order/preConfirm', method: 'POST', data });
// 确认收货
export const reqEnterOrderRec = data => request({ url: '/order/confirmReceive', method: 'POST', data });
// 查询订单退款详情
export const reqReturnOrderDetails = data => request({ url: '/order/getRefundsOrderDetails', method: 'GET', params: data });